bash bashtoko

Greenhorn
+ Follow
since Jan 20, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by bash bashtoko

Please help ..

We have a table called "Users" one of the columns is called "User_type"

and another table called group members...

there is a complex relation ... can you please see attached image and help me with this ...

sorry but I had to draw it because its hard to explain....

Many thanks in advance


how this can be described in Hibernate annotations ...


Please help....

Hello all.. Please help...

My company needs to create a new text field at runtime mode ... I did that ... but the problem is now ...

We need a way to bind it to a variable in the backing bean... and since its new and at runtime ... binding will not be done since no variable and getter to connect it to ...

Do you have any ideas ???


Thanks
14 years ago
JSF


Hello all,

I have the following ....

I have a <h:commandLink field .. it send me to the next page ...

when I refresh the second page that I am in now ... it returns me to the first page ...

what is wrong .. what should I do ??

Thanks a lot
14 years ago
JSF

Hello All,


I need help with the DataScroller of the DataTable

I have the following

<rich:dataTable value="#{userTableBean.dataList}" var="dataItem"
rowClasses="row1, row2" id="taskList" rows="2"
columnClasses="50,100,100,100"
width="350">

<f:facet name="header">
<rich:columnGroup>

<rich:column colspan="4">
<h:outputText value="Trouble Tickets opened" />
</rich:column>

<rich:column breakBefore="true">
<h:outputText value="Ticket Id" />
</rich:column>


</rich:columnGroup>
</f:facet>


<rich:column>
<h:outputText value="#{dataItem.userName}" />
</rich:column>

<rich:column>
<h:outputText value="#{dataItem.lastName}" />
</rich:column>

</rich:dataTable>


<rich:datascroller align="left" for="taskList" immediate="true" maxPages="20" />


Now as you see the datascroller ...

The issue is that .. when there is pagination .. i.e: there is scrolling when data doesnt fit.. when I click on the second index or third ...

it doesnt bring its results until the WHole page is refreshed ...

can any 1 help me with this ???

THANKS a lot
14 years ago
JSF


I hope that I dont disturb you ...

I couldnt find on the net how to create a custom Managed bean scope

can you tell me how ?

Thanks.
14 years ago
JSF


Thanks a lot !
14 years ago
JSF


Thanks for the help ... I get it now..

and if I want the values to be preserved over 2 pages, should I use session or what ??
14 years ago
JSF

Hello all,

I am new to JSF .. I have a question...


I have an input text
<h:inputText .... >
and

<h:commandButton ...

I fill in the input text , then I click the command button in order to fill in a table with the result that I bring from the database ...

now the Backing bean I am using is set to "Request" scope ...

the first time I click the action, the table gets populated with the data..

but If I click any where else in the page to refresh it .. the values of the table are lost ...

I know that my question is a silly one ... but please help ...

I tried changing the scope to "Session" and it worked ... but isnt that consuming memory .. it will stay saved in memory ...

is there another way , please explain to me ... I feel that I am missing something ...

appreciate your help any1

thanks in advance ..
14 years ago
JSF


I have this code

<h:selectOneMenu id="beesh" onchange="submit()" valueChangeListener="#{testActionListener.processValueChange}" value="#{userBean.favCoffee2}">
<f:selectItems value="#{userBean.favCoffee2Value}" />
</h:selectOneMenu>


When I try to add a new option to the component .. it produce a class cast exception >>>>

java.lang.ClassCastException
at javax.faces.component.UIComponentBase$ChildrenList

Map<String, Object> map = new LinkedHashMap<String, Object>();
i.put("java", "course");
source.getChildren().add(map)

What is the problem.. please help..

Thanks..
14 years ago
JSF


thanks a lot for your help .. and for baring me ...

but what should I do in the listener ??

I want to add a new value ... only if it does not exist ?



sorry for asking too much

thanks
14 years ago
JSF
Hello again Tim ..

what if I want something like >>>

<h:selectOneMenu onchange="submit()" valueChangeListener="#{testActionListener.processValueChange}" value="#{userBean.favCoffee2}">

now how can I get all values whether selected or not

is it like this :

public void processValueChange(ValueChangeEvent arg0) throws AbortProcessingException {




HtmlSelectOneMenu selectItems = (HtmlSelectOneMenu)arg0.getComponent();

selectItems.getChildren();

???

why this method doesnt bring every value in this component ??


14 years ago
JSF


Thanks a lot Tim for the quick reply ...

Tim .. this is what exactly I am trying to do .. is to grap this collection of the values in this component...

I ran the server in debug mode .. and couldnt find a clue to which property to look for...


could you please explain to me your way more ... ??
since the place I am trying to access the VALUES is the listener .. while the default values are in the bean ..

so how are you doing it ??

I am new here .. and I appreciate your help in advance ... please help because .. I am nearly to tear my self down !!

Thanks
14 years ago
JSF
Hello All,

I have a problem with getting the list of values that exist in the list...

so in my listener >>

public void processValueChange(ValueChangeEvent comp) throws AbortProcessingException {


UIComponent source = arg0.getComponent();


<h:selectOneMenu onchange="submit()" valueChangeListener="#{testActionListener.processValueChange}" value="#{userBean.favCoffee2}">


how can I now fetch all the values there .... NOT the SELECTED value

because if the value is already there .. I dont want to add it again ...

Appreciate your help ..

Thanks.
14 years ago
JSF