[JBoss Seam] - Re: SelectOneMenu problem
by limousyf
Ok,
I replaced the s:selectItems by a good old fashioned f:selectItems backed to a List
| public List<SelectItem> getAssignableItems() {
| assignableItems = new ArrayList<SelectItem>();
|
| for(Assignable value : this.getAvailableLines())
| {
| String prefix = "";
| if(value instanceof Regie){
| prefix = "regie";
| }
| else if(value instanceof CollaborateurAffecte){
| prefix = "collaborateurAffecte";
| }
| else if(value instanceof CollaborateurAffecteAstreinte){
| prefix = "collaborateurAffecteAstreinte";
| }
| else if(value instanceof Conge){
| prefix = "conge";
| }
| else if(value instanceof OperationsDiverses){
| prefix = "operationsDiverses";
| }
|
| assignableItems.add( new SelectItem(prefix + "-" + value.getId(),value.getDesignation()));
| }
| return assignableItems;
| }
|
As you can see, I'm converting manually in the getter.
And it actually works !
Well it works with f:selectItems and the s:selectItems code was working with seam 1.2 so I really guess there's a bug here but I'm not sure where I should debug to find it.
Got an hint on this ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113015#4113015
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113015
18 years, 4 months
[JBoss Seam] - Re: ReRender does not update the Form drop down values
by saeediqbal1
Here is the thing, the data in my code comes from my database so i dont think i can have the code out to test. But i can explain as best as possible.
For the list that my action method populates or updates it is defined as follows: -
@Out(required=false)
| private List <String> speedDialCodes;
When i print it in the console it prints out good, but the "reRender" does not render that h:selectOneMenu . I noticed others had problems in this too online.
The solution that i have now is a javascript reloading of the same page but that is no ajax anymore :( I would rather not have the page refresh and let reRender do the updating of my dropdown list but it doesn't.
I even tried this but that didn't help much
<a4j:ajaxListener type="org.ajax4jsf.ajax.ForceRender"></a4j:ajaxListener>
If you want you could easily reproduce this code by having a simple list like this in the action method or the constructor and doing .remove() or .add() to it in the action method to see if it gets updated in the view
speedDialCodes = new ArrayList<String>();
|
| selectedSDCode = "1";
| speedDialCodes.add("1");
| speedDialCodes.add("2");
| speedDialCodes.add("3");
| speedDialCodes.add("4");
| speedDialCodes.add("5");
| speedDialCodes.add("6");
| speedDialCodes.add("7");
| speedDialCodes.add("8");
| speedDialCodes.add("9");
| speedDialCodes.add("10");
Any assistance would be appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113008#4113008
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113008
18 years, 4 months
[JBoss jBPM] - error in build cvs source code
by fengzhi
hello,
For my application I has to define the custom tasks, which likes this
http://wiki.jboss.org/wiki/Wiki.jsp?page=CustomTasks
Therefore I have downloaded the cvs source code and builded it.But it costs me 2 days time, and still doesn't work right.
I did following steps:
1. Download the jbpm source code from cvs
2. Change the variables software.installation.dir, ant.home, jboss.home to suit to my local machine
3. Then build "ant get.dependencies", "ant install.jbpm.ant" and "ant", the first two builds are successful, but the third build was failed.
BUILD FAILED
D:\xxx\jbpmcvs\jbpm.3\build\build.xml:36: The following error occurred while executing this line:
D:\xxx\jbpmcvs\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build\build.xml:63: The following error occurred while executing this line:
D:\xxx\jbpmcvs\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build\build.xml:221: Warning: Could not find file D:\xxx\jbpmcvs\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build\target\workspace\N.3.1.0.SP1\org.jbpm.gd.jpdl.feature-3.1.0.SP1.zip to copy.
What did I do wrong?
Sincere thanks for any help
Fengzhi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113004#4113004
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113004
18 years, 4 months