[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: mreich  XML
Profile for mreich -> Messages posted by mreich [744] Go to Page: Previous  1, 2, 3 ... , 48, 49, 50 Next 
Author Message
... just perfect ...
This sounds very good!

Will I get this parameter through JSF paramValues or through headerValues?

Markus
Because of dynamic IP assignment, I would prefer the option with the restricted file area.

Markus
ok, I found the entry
http://www.casabacdemo.com/forum/posts/list/342.page

let's wait for the captain, in my application cookies are planed as well

Markus
Hi Manfred,

I would use the JSF context like this:
FacesContext facesContext = FacesContext.getCurrentInstance();
String cookieName = null;
Cookie cookie[] = ((HttpServletRequest)facesContext.getExternalContext().
getRequest())
.getCookies();

theres an example at http://www.roseindia.net/jsf/RememberMeLogin.shtml



regards
Markus
Hi community,

I've defined a page with contains a row with a button and rowinclude which contains another page.
Is there a way to trigger a method within the rowincluded page from the surrounded pages button?
I know the content / reference replace property, but I didn't find a way to inject a callback method
to the included page to delegate events!
The only programatically way I know would be to use the observer pattern, so my rowincluded page listens
to actions of the surrounded page, but maybe theres another better way?

My intention:

I want to create a common interface for editing certain entities, so theres a static row for change,
save and delete buttons
For each entity theres a separate page which contains the individual field / Value pairs. I don't want
to generate this design dynamically, I use the paintarea container.
This entity detail page I include in the interface page via rowinclude. Now I when I press the save button
I have to delegate the action to the rowincluded page, the same for delete or change action.

maybe someone facing the same situation?

regards
Markus
I can't believe it too ;-)

I think I have an error in my project, because I still can't see my managed beans in the Dev. Tool. ( http://www.casabacdemo.com/forum/posts/list/524.page

I develop on two environements, so I think its not a OS or Capt.Casa Install. problem, I use the latest version from 20090323.

I added the property DrawOddEvenrows to the FixGrid, this property didn't work too?

Markus
Thanx for your hints, but the column is still editable?!
I'll change my architecture to ROWDYNAMICCONTENT, maybe then my problems are gone ;-)

Markus
Hi,

I try to make the cells of my dynamic grid non editable, but I didn't get this done.

This is my coding:
protected ROWComponent m_rowComponent = new ROWComponent();
public ROWComponent getRowComponent() { return m_rowComponent; }
public void setRowComponent(ROWComponent rowComponent)
{
if (m_rowComponent == rowComponent) return;
m_rowComponent = rowComponent;
// create fix grid
FIXGRIDComponentTag fgTag = new FIXGRIDComponentTag();
fgTag.setObjectbinding("#{d.ListUI.gridList}"); //$NON-NLS-1$
fgTag.setSbvisibleamount("25"); //$NON-NLS-1$
fgTag.setHeight("100%"); //$NON-NLS-1$
fgTag.setWidth("100%"); //$NON-NLS-1$
fgTag.setAvoidroundtrips("true"); //$NON-NLS-1$
BaseComponent fg = fgTag.createBaseComponent();
m_rowComponent.getChildren().add(fg);
// create columns


for (SGridMetaData meta : columns) {

GRIDCOLComponentTag gcTag = new GRIDCOLComponentTag();
gcTag.setText(meta.header);
gcTag.setWidth("100"); //$NON-NLS-1$
gcTag.setSortreference(".{data."+ meta.techname +"}");
gcTag.setSearchenabled("true"); //$NON-NLS-1$
BaseComponent gc = gcTag.createBaseComponent();
fg.getChildren().add(gc);

if (meta.type==SGridMetaData.CHECKBOX) {
CHECKBOXComponentTag cbtag = new CHECKBOXComponentTag();
cbtag.setSelected(".{data."+ meta.techname +"}"); //$NON-NLS-1$ //$NON-NLS-2$
cbtag.setAlign("center"); //$NON-NLS-1$
cbtag.setEditable("false");
BaseComponent cb = cbtag.createBaseComponent();
gc.getChildren().add(cb);
} else {
FIELDComponentTag fiTag = new FIELDComponentTag();
fiTag.setText(".{data." + meta.techname + "}"); //$NON-NLS-1$ //$NON-NLS-2$
fiTag.setEditable("false");
BaseComponent fi = fiTag.createBaseComponent();
gc.getChildren().add(fi);
}
}
}

I also set override the onRowSelect of the FixGridItem:
public class GridListItem extends FIXGRIDItem implements java.io.Serializable
{

public GridListItem(UserData data) {
this.data = data;
}

public UserData data;

public UserData getData() {
return data;
}

@Override
public void onRowSelect() {
}
@Override
public void onRowExecute() {
}

}

regards
Markus
it works, thanx, I thought JSF would call the Getter Methods to resolve the expression
Hi community,

is it possible to concatenate the expressions for building der grid items?
It's hard to explain in words so I give an example:

This is my private class which holds the relevant data:
private class UserData {
public UserData(String surename, String name, boolean admin) {
this.surename = surename;
this.name = name;
this.admin = admin;
}
private String surename;
private String name;
private boolean admin;
public String getSurename() {
return surename;
}
public void setSurename(String surename) {
this.surename = surename;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public boolean getAdmin() {
return admin;
}
public void setAdmin(boolean admin) {
this.admin = admin;
}
}

My GridListItem which contains the rows:
public class GridListItem extends FIXGRIDItem implements java.io.Serializable
{
private UserData data;
public GridListItem(UserData data) {
this.data = data;
}

public UserData getData() {
return data;
}

}

so I try to catch the data by:
FIELDComponentTag fiTag = new FIELDComponentTag();
fiTag.setText(".{data.surename}");

The text property remains empty, is this totally wrong, I don't want to use Maps, because to stay dynamic I would need to use reflection, or is there another way to stay dynamic?

regards
Markus
Hallo,

wäre leider zu dem Treffen gekommen, leider bin ich aber zu diesem Zeitpunkt bereits verplant.
Gibt es eventuel die Möglichkeit nachträglich Zugriff auf Unterlagen / Präsentationen zu bekommen?

Markus
Hi,

it's me again, again with problems with managed beans in the dev. tool.
All your mentioned points are checked, I now use hot deployment, because i use spring and hibernate. May thats the problem I think I'm a bit in jar hell.
Could there be problems with asm.jar or cglib.jar? Hibernate and Spring seem to use different versions?
I've taken the PIM project as template, so my projects structure looks like the PIMs, so the jar files are my only suggestion?

regards
Markus
Problem solved I found a eclipse metdata file, where I can change the path:
<attribute name="webrootdir" value="/webcontent" />

Markus
no problem, but i'm no professional maybe I'm an advanced beginner javascript:emoticon('');

Markus
 
Profile for mreich -> Messages posted by mreich [744] Go to Page: Previous  1, 2, 3 ... , 48, 49, 50 Next 
Go to:   
Powered by JForum 2.1.6 © JForum Team