[JBoss Seam] - Seam outputlink and page navigation
by Stateless Bean
Hi,
I got menu in my page and to navigation I use s:link, but s:link generates cid=xx number, and I need to user simple link in menu to maange then via js.
(In one page I need to change href for some links)
I thougth to use <h:outputLink to create simple link and call action when user click on it.
Here is my code:
| <h:outputLink id="linkNewOrder" action="#{ordersAction.orders}">
| #{messages['link.orders']}
| </h:outputLink>
|
My question is:
1. how can I call this action from my bean, at now nothink is called when I click on it?
2. How can I navigate user to other page?
I added this to my pages.xml and this not working for outputLink
| <navigation from-action="#{ordersAction.orders}">
| <redirect view-id="/pages/new_order.xhtml"/>
| </navigation>
|
3. Is to possible to call action via outputLink and navigate user to other page?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110808#4110808
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110808
18 years, 4 months
[JBossWS] - Re: ArrayList or Set as return type in a web method ?
by shoeb1981
You can return any object of any complex data structure, as long as you can write an xml schema for that.
However, rather than returning the Set object, you could return an array, which could further be cast down to a set by the client application.
The purpose of web services is to have a standard interface that both parties agree with (the provider of the service and the client). You should keep your interface simple so that you can write a simple schema for that. That will be easier for you to manage and simple for your client to understand.
If you want to re-use the component in your application that you want to expose as web service, you can write an adapter class to your business method. And expose that adapter's interface to client. So in future if you change the original method's signature your clients will still get benefit.
Hope that helps.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110802#4110802
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110802
18 years, 4 months