Win a copy of Spring Boot in Practice this week in the Spring forum!

D. Formenton

Ranch Hand
+ Follow
since Mar 20, 2008
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 D. Formenton

in JSF page I the following code:


where type and chiave are two integer.
I wold like to pass these numbers to the following javascript function:


but I get the message: Error Traced [line: 24] The entity name must immediately follow '&' in the entity reference.

Some help, please? Domenico
3 years ago
JSF
Hi,

I would like to know if associating to a java application more libraries than necessary, the useless ones are still associated with the .war file and they needlessly consume memory.

If this is true, there is a way to recognize the libraries that although part of the project in practice are never invoked, so that they can be eliminated from the project?

thanks
7 years ago
Hi,

I would like to create a web application for remote control of machine tools. Does anyone know tell me if JSF libraries exist for such applications, which contain for example analog instrumentation (ese for ammeters, voltmeters, etc..) And digital (eg. 7-segment display)?

thanks.

Domenico
9 years ago
JSF
Thank you Tim.

As, in my case, the two welcome pages are (and must be) totally independent, I realize that the best way to solve the problem is to create two JSF applications over the same database, instead of merge multiple logic (and independent) path in the same application.

Again thank you.

Domenico
9 years ago
JSF
Hi,

is it possible to configure a JSF application so that it can begin execution calling (in the address bar of browser) one of two different .xhtml pages?
I tried to put the two pages into the welcome-file-list but only the first one works.

Thank you.

Domenico
9 years ago
JSF
Hi,

I created some classes using xjc compiler from the xsd:

and, after processing, the resulting xml is:

while the expected xml should be:

How I have to edit Dataroot.java to get the expected result?

Thank you

Domenico>
I need to move from one JSF page to another (to create a new entity) and,
when finished, go back to the source page (consumer of entity) by transferring the newly created entity?.
Is there a standard way to move from one page to another by passing parameters?

A pratical example would be appreciated.

Thank you.

Domenico
9 years ago
JSF

My question is: it is possible to add a rich:collapsibleSubTable under another rich:collapsibleSubTable?

I.e. is the following structure correct?

<rich:dataTable id="mainTable" ... >
... clumns
<rich:collapsibleSubTable id="subTable1" ... >
... columns
<rich:collapsibleSubTable id="subTable2" ... >
... columns
</rich:collapsibleSubTable>
</rich:collapsibleSubTable>
</rich:dataTable>

Thank you.

Domenico
10 years ago
JSF
Hi,
I'm using RichFaces framework version 4 and I meet serious problems to implement properly the selection of an item in a rich:Trees.

I have investigated on the net a number of examples but these examples use components and properties not present in the rich:Trees version 4 object, for example, Rich:treeNodesAdaptor and nodeSelectListener.

I believe therefore that these examples refer to previous versions of rich:Trees.

Please, could someone give me directions or an example of how to implement the selection of an item using rich:Trees version 4?

Thank you.
10 years ago
JSF
Hi,

If I extends a class A to Class B, in B I can see all public getters and setters (and public methods).

My question is: it possible to avoid to show some (not all) of public getters and setter (and public methods) of superclass when I use the subclass?

Thank you

10 years ago
I need to display a file. pdf in a new window (or, rather, in a new tab), other than that used by the application.

The following function shows the file correctly, but unfortunately overwrite the main application window.

What changes should I make to the code to make the pdf file opens in a new window?

Thank you.

Domenico
10 years ago
JSF
Hello,

I am developing a web application (JSF) with NetBeans 7.1 and JasperReports 4.5.1.
I have a problem with determining the correct path in which to place the folder 'reports' that contains the *. Jasper and how to retrieve files from code.

The fragment that does not work is as follows:



The error is "java.io.FileNotFoundException: \reports\ElencoPersone.jasper"

Thanks to all who want to give me their suggestions.

Domenico
10 years ago
JSF
Dear Tim,

thank you for your help, I tried to implement your suggestions but unfortunately without results.
Based on your tips I modified the code as follows:

<p:dataTable value="#{personeController.getAll()}" var="item"
paginator="true" rows="10" rowKey="#{item.id}"
id="personeTable" style="border:solid 1px">
...

<h:commandButton image="/resources/icons16x16/delete.gif" id="delete"
type="button" title="#{misc.find_delete}"
action="#{personeController.delete(item)}"
onclick="confirm('Sei sicuro di voler eliminare la Persona?');"/>

....

</p:dataTable>

If I properly understood, the call to confirm passes to 'onclick' a value (true or false), and this value activates or inhibits the start of 'action'.

The result is that 'action' is triggered whatever response is received from confirm (yes or cancel).

I want point out that the button is part of a table and the action is directed to delete a row of the table.

I thak you in advance for your further availaibilty and your courtesy.

Sincerely

Domenico

10 years ago
JSF
Hi, Guru,

I have a problem with this code:


<h:commandButton id="hiddenBtn" style="display: none"
onclick="#{personeController.delete()}" />

<script type="text/javascript">
function conferma(){
var b = confirm('Sei sicuro di voler eliminare la Persona?');
alert(b);
if(b == true){
document.getElementById('hiddenBtn').click();
};
}
</script>

I woul like to call the backing bean method personeController.delete() ONLY when the aswer to confirm dialog is "YES".
Instead the method is called also when the answer is "CANCEL" (and, obviously, b = false).

What is my mistake?

Thank you.

Domenico
10 years ago
JSF
Hi,

I have trouble to insert accented letters in a postgres database from a web application developed with netbeans.

The accented letters become sequeces of 2 or more characters.

Details:

Netabeans ver. 7.1
in faces-config.xml
...
<locale-config>
<default-locale>it_IT</default-locale>
</locale-config>
...

Postgres ver. 9.1
Database Properties:
Encoding WIN1252
Collation Italian_Italy.1252
Character Type Italian_Italy.1252

JSF Library Primefaces v. 3.0.RC2

How I have to configure Netbeans ond/or Postgres to work correctly with Italian alphabet?

Thank you very much.

Domenico


10 years ago
JSF