s:if test with empty String

2008-01-29 Thread quinquin2209
Hi All, I have an array of String members... where member[0] is the member id and member[1] is the member's name. In the jsp, I want to display member[1] if it is not empty, or member[0] if member[1] is empty. s:if test=%{members[#status.index][1]} == '' s:property

Action method is not called when the page is redirected with actionError

2008-01-24 Thread quinquin2209
Hi All, I have the following 2 actions defined: action name=list class=mainAction method=initDisplay interceptor-ref name=store RETRIEVE /interceptor-ref interceptor-ref name=defaultStack / result name=input/jsp/main.jsp/result /action action

Problem with loading form control when actionError return

2008-01-18 Thread quinquin2209
Hi All, In my web page main.jsp, I have a form defined, which contains a select box and a list of checkbox. The page works as follow: 1. user checks on the box to select member to be deleted 2. user presses the submit button 3. Member is deleted from DB 4. Return SUCCESS with actionMessage if

Re: Problem in using Message Store Interceptor

2008-01-09 Thread quinquin2209
RETRIEVE /interceptor-ref (*Chris*) On Jan 8, 2008 11:49 PM, quinquin2209 [EMAIL PROTECTED] wrote: HI All, I have originally define some action as follow: action name=list class=mainAction method=initDisplay result name=input/jsp/main.jsp/result /action action name

Re: Problem in using Message Store Interceptor

2008-01-09 Thread quinquin2209
name=success/jsp/main.jsp/result result name=error/jsp/main.jsp/result /action L. quinquin2209 wrote: Thanks for reply. I have wrap them in param tags but don't know why it disappear when posting to this forum. The problem persists even if param tag is used. Chris Pratt

Problem in using Message Store Interceptor

2008-01-08 Thread quinquin2209
HI All, I have originally define some action as follow: action name=list class=mainAction method=initDisplay result name=input/jsp/main.jsp/result /action action name=addMember class=mainAction method=addMember result name=success/jsp/main.jsp/result result

Refresh parent browser when form in pop-up browser is submitted

2007-12-16 Thread quinquin2209
Hi All, In my application, user can open a member profile in the main page. The member profile is opened in a pop-up window and user can edit the profile. When user submits the form in pop-up browser, I want to close the pop-up browser, refresh the parent browser to reflect change and also

Dynamic Column generation in Displaytag

2007-12-12 Thread quinquin2209
I read the source code provided by Display Tag example about dynamically generate table column. display:table name=test c:forEach var=cl items=${collist} display:column property=${cl.property} title=${cl.title} sortable=${cl.sortable} format=${cl.format} / /c:forEach

Re: Tabbed Panel and useSelectedTabCookie

2007-12-12 Thread quinquin2209
is generated dynamically. Queenie Jeromy Evans - Blue Sky Minds wrote: quinquin2209 wrote: I have tried to store the last selected tab by setting useSelectedTabCookie=true. It works fine as long as the tab remains. However, problem occurs when the last selected is removed as follow: 1. User

Re: Getting form input from a remote tabbed panel

2007-12-11 Thread quinquin2209
Thanks a lot. I understand it now. Jeromy Evans - Blue Sky Minds wrote: quinquin2209 wrote: I have a page which has a tabbed panel and all tab is remote tab: main.jsp html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en heads:head theme=ajax debug=true//head body

Display tag and target div

2007-12-11 Thread quinquin2209
In main.jsp, I have a tabbed panel which has a remote tag loading an external page memberList.jsp. This memberList.jsp contains a display tag which is used for sorting and pagination. Now I encounter problem when I press on the display tag to do sorting/pagination. Every time I click on the

Re: Display tag and target div

2007-12-11 Thread quinquin2209
. Is there anything I wrongly defined? Queenie Jeromy Evans - Blue Sky Minds wrote: quinquin2209 wrote: In main.jsp, I have a tabbed panel which has a remote tag loading an external page memberList.jsp. This memberList.jsp contains a display tag which is used for sorting and pagination. Now I

Tabbed Panel and useSelectedTabCookie

2007-12-11 Thread quinquin2209
I have tried to store the last selected tab by setting useSelectedTabCookie=true. It works fine as long as the tab remains. However, problem occurs when the last selected is removed as follow: 1. User select tab B 2. In the jsp, remove the tab with id B 3. Refresh the browser Javascript error

Getting form input from a page dynamically loaded into a tabbed panel

2007-12-10 Thread quinquin2209
I have a page which has a tabbed panel and the content of each tab is dynamically loaded from an external source as follow: main.jsp html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en heads:head theme=ajax debug=true//head body http://localhost:8080/app/message/list.action/a

Modal Dialog in Struts2

2007-12-06 Thread quinquin2209
Hi All, Is there any way to make modal dialog as that provided by dojo? Is that we don't need to put the dojo package to the /js folder as it is include in struts2? Can you please provide some example to achieve it? Thanks in advance. Queenie -- View this message in context:

Re: DisplayTag - show image by condition

2007-12-06 Thread quinquin2209
returnString; } } DOnt forget to include the decorator in your table tag: display:table cellpadding=1 cellspacing=1 name=memberDAO.members decorator=myPackage.MemberListDecorator . . . Rich On Dec 5, 2007 12:16 PM, quinquin2209 [EMAIL PROTECTED] wrote: Hi All, I am trying

DisplayTag - show image by condition

2007-12-05 Thread quinquin2209
Hi All, I am trying with the displayTag and I would like to see if it is possible to display an image at the first column depending on some conditions. For example, a vip.gif should be shown if the person is a VIP and no image should be shown if the person is normal member. How can I achieve it?

Re: Scrollbar problem with tabbed panel in Struts2

2007-12-05 Thread quinquin2209
Thanks. It's ok for your suggested method. Jeromy Evans - Blue Sky Minds wrote: quinquin2209 wrote: Thanks for reply Yes. The content of the tab remains, just the scrollbar appears/disappears. I have tried an experiment in the tabbed panel example in struts2-showcase as follow: 1

Datagrid in Struts2

2007-12-04 Thread quinquin2209
Hi All, I am using Struts 2 and I wanna develop a datagrid as that provided in Struts Layout. I have couple of questions: 1. Is that I can't use Struts Layout in Struts 2? If it can be used? How to set up? 2. If Struts Layout cannot be used in Struts 2, is there any similar plugin that provide

Scrollbar problem with tabbed panel in Struts2

2007-12-04 Thread quinquin2209
Hi All, I have used the tabbed panel provided by Struts2. When the content within the current pane exceed the panel size, scrollbar is shown as expected. However, if I click on the tab-header of the currently opened tab, the scrollbar disappear. It appears again if i click that tab-header again.

Re: Scrollbar problem with tabbed panel in Struts2

2007-12-04 Thread quinquin2209
. From: quinquin2209 However, if I click on the tab-header of the currently opened tab, the scrollbar disappear. It appears again if i click that tab-header again. The content of the tab remains, just the scrollbar appears/disappears? d

DisplayTag - How to do sort?

2007-12-04 Thread quinquin2209
I have just downloaded the DisplayTag and try with the sort function. I do the following: display:table name=messages sort=list pagesize=8 display:column property=docId title=ID group=1 sortable=true headerClass=sortable / display:column property=sender title=Sender group=2 sortable=true