fabio alonso

Ranch Hand
+ Follow
since May 15, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by fabio alonso

fabio alonso wrote:I have a panelgrid (with radios) that tells me two columns, with a description and the other with values
I am needing to make bold the chosen line, tried to do, but as much as I could, through the studies was to leave in bold spmente of the columns.
Problem is that he is leaving so the description, the column values ​​is not bold, tried to modify the javascript several times .. but not worked ..

Do you know where I can change more to solve this?

Below the code that modifying the standard description, missing values ​​also change



javascript


Anyone know how to solve?
thanks

12 years ago
JSF

Tim Holloway wrote:I can't give an instant answer, since I don't fully understand, but I think I can help.

First, your top 2-3 lines of jQuery code are using the "$" notation, This conflicts with EL syntax in JSF, so you need to use the "jQuery." form instead.

Secondly, the common behavior that most JSF datatables provide by default is a "hover' style, where the color and/or other attributes (bold font, for example) are done as part of the row class definition and thus the appearance will change as you roll the mouse up and down the table. If you want a "selection", you have to do more, since in basic JSF there isn't actually the concept of a "selected row". I don't remember if Tomhawk supports one or not.



thanks for the help,

but the problem is that he is only applying the formatting in the description column,
like you said, it is not "seeing" the line, only the column, this is my biggest problem..
12 years ago
JSF
I have a panelgrid (with radios) that tells me two columns, with a description and the other with values
I am needing to make bold the chosen line, tried to do, but as much as I could, through the studies was to leave in bold spmente of the columns.
Problem is that he is leaving so the description, the column values ​​is not bold, tried to modify the javascript several times .. but not worked ..

Do you know where I can change more to solve this?

Below the code that modifying the standard description, missing values ​​also change



javascript


Anyone know how to solve?
thanks
12 years ago
JSF

Brendan Healey wrote:One strategy I've seen mentioned is that you can run InnoDB & MyIsam in some sort of a parallel setup, just
storing the ids & data you need to search on in MyIsam. Very interesting to hear that they've got something
going into 5.6 for InnoDB, it sounds like waiting a bit is going to be easiest. There's also a product called
Sphinx that gets mentioned alongside Lucene for this sort of thing.

Regards,
Brendan.



So.

In fact, accepts full text mysql 5.6 innodb tables .. but is still in beta testing

Regards,
Juliano
13 years ago
JSF
Hi Folks,

I need to implement a full text search.

Searching for the GUJ right here, seen as alternatives: hibernate search, lucene, the actual mysql 5.6 (although still in testing, this version supports Norva on InnoDB fulltext)

But there is no conclusion reached. My reality is, JSP, MySQL, JSF

Do you have any suggestions for reading, or something similar article covering this my reality? so I can understand ..

Thankfully
13 years ago
JSF

Tim Holloway wrote:Try RichFaces or IceFaces, then. They'll do AJAX under JSF1.





But the problem is, this is because the radiobutton in a panelGrid and commandLink in another .. how to solve this? because I can not change them from their "grids."?
13 years ago
JSF

Tim Holloway wrote:JSF runs on HTTP, and HTTP's design, regardless of the framework or programming language used, is limited to request/response. When using input controls such as radio buttons, the request has to be part of a submitted form. Technically, therefore, a button cannot "call" a bean method. In fact, even "Submit" buttons don't actually "call" anything. What they do is submit the form and JSF parses the incoming data as part of its lifecycle processing, firing the control's action method (and/or notifying action listeners) as part of the lifecycle process.

Briefly, then, in order to emulate an interactive GUI desktop-style radio button action, you can't use basic JSF because it's based on basic HTML/HTTP.

However, you can use AJAX to get the desired behavior.

What you need to do is attach an AJAX request to the radiobutton. That AJAX request would then fire a backing bean method which would use the current value of the property named "codigo" to setup the updated display values. On return from the AJAX call, the changed parts of the page are re-rendered using the updated values from the backing bean.

How you handle AJAX depends on you. In JSF2, there's a new ajax tag, but a number of the third-party extension tagsets also provide AJAX services, and several of them work under JSF1 as well as JSF2.





Thanks,

but, I'm used jsf 1.0 ......"f:ajax"....is JSF 2
13 years ago
JSF
Hi,

I created a few options with radio buttons, they call my bean and runs beauty

I have a button to update the data on the screen after I select a radio, problem is that I would call this just by changing the options button of the radiobutton or selecting any of them (no need to click the refresh button on commandLink

code radio:



code commandLink:


13 years ago
JSF
Dear,

I'm trying to build the query below for a more detailed search, but giving this error. Under the original code:

[code]
queryPrincipal.append ("FROM manufacturer f, filial_produto fp, f branch, and origin"). append ("WHERE"). append ("= f.filial fp.filial AND"). append ("fp = p.cod_material. cod_material AND "). append (" f.descricao like? ");
[/ code]

I tried to develop this way:

[code]
queryPrincipal.append ("FROM manufacturer f, filial_produto fp, f branch, and origin"). append ("WHERE"). append ("= f.filial fp.filial AND"). append ("fp = p.cod_material. cod_material AND "). append (" MATCH (description) AGAINST ('?' WITH QUERY EXPANSION) ');
[/ code]

But it did not work, you know how I apply this function (Math. and Against) this query?

thanks
I do not understand...

" If it does you need to prefix them with another '%' or '\%'" ???
So

Already configured my web.xml. When I click I can usually save the file I want on my computer.
This logic is correct, just, I want to write, my ID is in the recorder database to see which user has copied files to the machine, get it?

14 years ago
Hi, you ok !?

Now I have developed below the servlet, but I'm still finding it difficult to call it. Can you give me any tips?

servlet



Here where I have the button that should make the task of calling the servlet that writes to the database

14 years ago

So Amit ,

According to his idea, then it would be better to create a new servlet and create a javascript code in my jsp?

Regds,

14 years ago
JSP

amit punekar wrote:Hi,
The simplest and basic way to do this as below :
1) Post the data that needs to be added to the database
2) You can either choose to post to a JSP or Servlet if you are using plain JSP-Servlet architecture (MVC 1 or 2)
3) In the JSP or servlet invoke the corresponding method of the class that does the task to insert the data in database.

regds,
amit




Hi,

Thank you for your cooperation,

I'm kinda lost it, below is my code.

The intention is that every time someone clicks the button it writes to the database id of the person and date.

jsp


Classe



Can you help me with some idea or example?

thanks
14 years ago
JSP
I'm trying to call a class (which has a method to record in the database) by mimha jsp, but I can not.

my code that has a button is this



..
<td>
<a href="<c:url value="download/send?" >
<c:param name="arquivo" value="${row.file}"/>
<c:param name="pathname" value="${row.path}" />
</c:url>">
<img src="images/pictgure.jpg" width="20" heigth="20"/> </a>
</td>
..



Anybody?

Thanks
14 years ago
JSP