Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

Shaiju scientia

Greenhorn
+ Follow
since Jan 17, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Shaiju scientia

Hi,
I am using dataScroller for pagination. I have also customized the data model in order to implement a hybrid pagination logic.
My hybrid approach requires to identify which datascroller control button(i.e either next page button or fast forward button) is clicked.Basically when ever the user click on any of the pagination controls, the "walk" method of the datamodel will be invoked.Here I have to identify which control has been clicked by the user.

Any suggestions??

Thanks In Advance
Shaiju
12 years ago
JSF
Hi,
I have a form where it got an icon to open an LOV(List Of Values) panel.The LOV panel is nothing but a modal panel.
The original form(the parent form ) got couple of inputText with required="true" validation. To open the LOV panel i.e the modal panel, I am using a h:commandLink


Now the issue is , the moment I click on this button, the required="true" validation for the inputTextBox get fired and stays back in the page,with validation error messages.
If I enter some value in the text box , the modal panels shows up ,as the validation is passed this time.

I have tried using a4j:commanButton also , but without any luck.
Can anybody suggest ??

Thanks in advance.
Shaiju
12 years ago
JSF
Hi ,
I am facing a strange issue.
I have a parent page and a modal panel opening from the parent. The modal panel displays a data table with pagination.
When a move to each page(by clicking the page number) of the data table, the parent page getting refreshed and the it gets more darker and darker!!!(I believe because of the modal nature of the child panel).
I have included the modal panel as a jsp include


Inside accountGroupLov.jsp , i have a dialog panel, where i render the data table.

Where I am using primefaces dialog component.
I dont want the parent page to be refreshed each time I navigate to different pages of the data table in the modal panel.
Can anybody give a clue?

Thanks in advance.
Shaiju>
12 years ago
JSF
The solution is add submitMode="none" to the rich:menuItem tag

Shaiju
12 years ago
JSF
Hi,
I am using scrollable data table to get the row selection feature(Please let me know if anybody have a different suggestion for this). However the issue now is, I have a button in the same page and on clicking that, i have to show a modal panel(a confirmation dialog box). But the modal panel always goes behind the scrollable data table.I mean the data table hides the modal panel.
This is is happening only with rich: scrollableDataTable .rich:data table works fine(of course not with the row selection) .
Ohh yes, this is happening only with Mozilla Firefox. in IE8 and chrome its working fine. anybody have any suggestion?

Thanks in advance

Shaiju
12 years ago
JSF
Hi,
I am trying to get a confirmation dialog box to be opened from a rich menu item
I was able to provide the the confirmation dialog to button, but none of the solution seems to be working for menuItem.
Have anybody faces a similar issue?
Please help ...

Thanks in Advance
Shaiju
12 years ago
JSF
Hi,
I have domain object Emloyee and through a UI the user enters the values for this domain object.
I want to validate the values entered by the user.
Now the scenario is , i wan to validate a particular attribute based on another attribute of the same domain object.
say I have a boolean attribute "isAvailable" in my domain object, this is set by the user by selecting check box .
Now I want to validate another attribute called "salary" based on the attribute "isAvailable" .

Any Idea how, can I achieve this.

My design is like this

1) Create a custom validater
2) Define an attribute Employ emp in the custom validater (Not sure whether this is right)
3)implement validate method and use the emp object to performe the validation

But problem is step 2 outsource. Is there a way I can inject the object into the validater?
Can anybody suggest ?

Thanks in Advance
Shaiju
12 years ago
JSF
Hi,
I came across the following article
http://www.roseindia.net/jsf/actionListener.shtml
Where it showing swing component ,JOptionPane.showMessageDialog(null,"Hi"), being rendered using JSF.
Is it possible to use Swing component with JSF ? If this is true, I guess we can have a lot more flexible components and rendered using JSF.
What is the down side of this ? can anybody throw some light?

Shaiju
12 years ago
JSF
Hi,
Can anybody tell me when does an object of a backing bean(in request scope) get created ?
I have a few components in my jsp page,which have corresponding action listener defined in the backing bean. I have observed that a new instance of my backing bean (i.e the @PostConstruct getting called) is getting created for each events those fired from my UI.
Actually I have a DB call in my init() method which is annotated with @postconstruct.
But this method is getting called for each events that are getting fired and hence calling the DB each time. I want to avoid this.

Can anybody help ?

Shaiju
12 years ago
JSF
Hi ,
I have dialog box opening from a main jsp page, say "list.jsp". I have put the dialog inside another jsp called details.jsp and included the same inside the list.jsp as follows

I am using primefaces component libraries for the dialog box.
The details.jsp (i.e the dialog) contains an edit button(a command button).


But when I click the edit button ,nothing is happening.
But if I put the button directly inside the list.jsp, the editAction method is getting invoked.
How can I get this working , from the included detals.jsp? Can anybody help?
Thanks in advance.

Shaiju
12 years ago
JSF
Hi,
I am a newbi in JSF and aj4.I have used ajs:support tag to do a server side validation (a business validation) ,invoking a backing bean method.
What I have observed is ,when ever the ajax call happened for this validation method , the init() method of the backing bean is getting executed.I have annoted the init with @postConstruct.This is required for me.
Please find the code below
jsp

Backing bean


Can anybody suggest,how do I turn off the invokation of init() on the ajax requests ?

Note:I have posted the same in sun jsf forum, but no response
http://forums.sun.com/thread.jspa?messageID=10821281�
Thanks in Advance
Shaiju
12 years ago
JSF
I am facing a similar issue. Searched through many forums.It seems you should be careful while mixing JSTL tags with JSF tags.
I have tried to replace ${} with #{}, but of no use.However you can try this.
Also a few people were suggesting that we can not iterate through a non sequential collection and render JSF components. In my case I am using Set,I am going to replace it with an ArrayList.I guess in your case you are using a list already,rite ?

Please update this post ,if you got a solution

Shaiju
12 years ago
JSF
Hi,
I am a newbie in JSF. I am using JSF1.2 (MyFaces). What confusing me is writing the controller logic inside the ManagedBean.It seems that ManagedBean would be my domain objects.Writing the controller/business logic inside my domain/business object is not a good idea.Is there some thing I got wrongly ?
Can anybody give a point?

Shaiju
12 years ago
JSF
Hi,
I have developed first phase of my product using spring + hiberbate. I have developed the web layer using Spring MVC.
Now I am considering JSF for the rest of the product . Do you recomend this aproach ? I mean mixing up spring MVC and JSF ?

My intenstion is to get a rich UI .
is there any pottential risk involved in using JSF with spring ?
Can I develop JSF code with eclipse? or JDeveloper is mandatory ?

Thanks in advance

Shaiju
12 years ago
JSF
Hi,
I am new to the design patterns.I came across the front controller pattern,which is a servlet handling all the request coming from the client.
But its confusing me.Becasue if a single resource handles all the request wont it be a petformnace bottle neck?I guess it will hit the performance and the load the controller servelt.if there are 1000 simultaneaous request there wil be 1000 thread spawn for the controller servlet.Please correct me if I am wrong.Can anybody give me some information how this works out to be?

Regards
Shaiju
16 years ago