[JBoss Seam] - all identical lines in datatable
by kukeltje
Hi,
One of our applications has the requirement that the 'edit'/'display details' part of an object and the selection list are on the same page (kind of like mail clients have it)
When the page is first displayed, the list (via a datamodel) is displayed correctly, but once I select an item, the details are displayed correctly and based on the role editable. In the list however each line contains the same data, the data related to the selected item. The number of lines is correct and clicking on another select shows me the data related to that select and all lines in the datamodel are filled with the newly selected item.
For the datatable it does not matter if I use myfaces or icefaces, the behaviour is the same. The 'page' is however in an icefaces tab.
Other info:
Seam version: cvs-head
Myfaces 1.1.4 or 1.1.5 (no difference)
Icefaces 1.5.1
Design of the application is identical to the issues example (selectors, finders, editors etc..)
Questions:
- Anybody else seen this?
- Could it be related to the icefaces tabs (I will try, just asking, lots, lots of troubles with IceFaces for me, e.g. conversationswitching not working)
- Where or what for should I look in the debug to see what is going on (the internals of seem are black box for me)
Ronald
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002712#4002712
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002712
19 years, 3 months
[JBoss Seam] - Interaction Design for Conversations?
by stephen.friedrich
We started our project a while ago, but Seam is only a recent addition to our toolset.
I have a hard time figuring out how to implement conversations, so that the extended persistence context as well as multiple browser windows and backbutton works.
In general my impression is that to make use of conversations you must have conversations in mind right from the start when you design the user interface of your app. However there's no way we can make fundamental changes to the UI at this stage of the project.
Is there any way to implement conversations correctly with this basic style of UI:
| Menu-Links: Employees | Clients | Projects | ...
| ------------------------------------------------
|
| List Selected Project Details
| ---- ------------------------
| Project A |
| Project B | Name: _______
| Project C | Lead: _______(Employee Dropdown) Go-> (Link to selected employee's details)
| Project D | ...
| Project E | Save-Button
|
| New-Button
|
In most pages there's a main menu for the different types of entities, a list showing all the entities of this type plus an edit form for the entity that is currently selected in the list. Several fields in the form have links to referenced entities.
The main problem I see is that there's no explicit "Start to Edit"-button to whose action I could add a @Begin annotation. Currently the edit form is also used just for browsing and navigation.
Any ideas and suggestions are highly welcome.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002705#4002705
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002705
19 years, 3 months
[JBoss Seam] - Re: Seam selectItems ignores label tag
by hubaer
I tried your suggestion, but it seems that #{messages['languagename.'language.isocode]} not works. I always get an exception:
Caused by: javax.el.ELException: Error Parsing: #{messages['languagename.'language.isocode]}
| at com.sun.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:140)
| at com.sun.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:157)
| at com.sun.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:201)
| at com.sun.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:74)
| at com.sun.facelets.tag.TagAttribute.getValueExpression(TagAttribute.java:256)
| ... 84 more
| Caused by: com.sun.el.parser.Pars
| 11:30:11,219 ERROR [STDERR] eException: Encountered "language" at line 1, column 27.
| Was expecting one of:
| "." ...
| "[" ...
| "]" ...
| ">" ...
| "gt" ...
| "<" ...
| "lt" ...
| ">=" ...
| "ge" ...
| "<=" ...
| "le" ...
| "==" ...
| "eq" ...
| "!=" ...
| "ne" ...
| "&&" ...
| "and" ...
| "||" ...
| "or" ...
| "*" ...
| "+" ...
| "-" ...
| "?" ...
| "/" ...
| "div" ...
| "%" ...
| "mod" ...
|
| at com.sun.el.parser.ELParser.generateParseException(ELParser.java:1651)
So I seached the internet an found out that EL cannot concat strings this way.
I found a solution, but I find is not very beautiful, but it works.
I defined the jstl functions in my header
xmlns:fn="http://java.sun.com/jsp/jstl/functions"
and could now use the replace function (a concat is not available) like followed:
<h:selectOneMenu value="#{user.language}">
| <si:selectItems
| value="#{languages}" var="language" label="#{messages[fn:replace('languagename.SUFFIX', 'SUFFIX', language.isocode)]}"/>
| </h:selectOneMenu>
Maybe I'll try to write my own concat-functions.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002704#4002704
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002704
19 years, 3 months
[EJB 3.0] - Re: ClassCastException in Stateful Session-Bean
by te-bachi
Hmm... interresting!
| public class Client {
| public static void main(String[] args) throws Exception {
|
| [...]
| Reference ref = (Reference) ctx.lookup("MyApplication/ShoppingCartBean/remote");
| System.out.println("ClassName: " + ref.getClassName());
| System.out.println("FactoryClassLocation: " + ref.getFactoryClassLocation());
| System.out.println("FactoryClassName: " + ref.getFactoryClassName());
|
| Enumeration<RefAddr> refaddrs = ref.getAll();
| RefAddr refAddr = null;
| while (refaddrs.hasMoreElements()) {
| refAddr = refaddrs.nextElement();
| System.out.println("Content: " + refAddr.getContent());
| System.out.println("ContentClassName: " + refAddr.getContent().getClass().getName());
| System.out.println("Type: " + refAddr.getType());
| }
| [...]
|
| }
| }
|
Shell:
| ClassName: java.lang.Object
| FactoryClassLocation: null
| FactoryClassName: org.jboss.ejb3.JndiProxyFactory
| Content: MyApplication/ShoppingCartBean/remoteStatefulProxyFactory
| ContentClassName: java.lang.String
| Type: FACTORY
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002696#4002696
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002696
19 years, 3 months