NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
kimfri
Joined: 22 Sep 2011 Posts: 2
|
Posted: Thu Sep 22, 2011 6:59 pm Post subject: Problem following JSF tutorial |
|
|
Hi all!
I'm trying to learn JSF, and I have followed the “youtube tutorial: http://www.youtube.com/watch?v=uFliFqgXJdE” and there it’s all fine, but not for me.
This is what I have done:
| Code: |
New Project -> Maven Web Application
the server to run the application in is selected to Glassfish Server 3.2
New -> Entity Classes from Database
select my Database Connection
add the desired DB-table, next, next and finish
my entity class is now created
New -> JSF pages from entity classes
Select the previously created entity class, add it and click next, next and finish
Now lets try to run and deploy the project.
my browser open and I see a “nice” webpage with one link on it.
When I click the link I get:
“An Error Occurred:
Can't find bundle for base name /Bundle, locale sv_SE”
|
I can't see anywere in the code that I should call for "locale sv_SE".
Can anyone see what I'm doing wrong? or were I'm thinking the wrong thoughts... |
|
| Back to top |
|
 |
Martin Fousek Posted via mailing list.
|
Posted: Fri Sep 23, 2011 3:25 pm Post subject: Re: Problem following JSF tutorial |
|
|
Hi,
On 09/22/2011 08:59 PM, kimfri wrote:
| Quote: | my browser open and I see a “nice” webpage with one link on it.
When I click the link I get:
“An Error Occurred:
Can't find bundle for base name /Bundle, locale sv_SE”
| you have to have Bundle.properties in your default package (means i.e.
<your_app_dir_>/src/java/Bundle.properties).
| Quote: |
I can't see anywere in the code that I should call for "locale sv_SE".
Can anyone see what I'm doing wrong? or were I'm thinking the wrong thoughts...
| It looks for the Bundle of your browser's locale so it looks for
/Bundle_sv_SE.properties
then
/Bundle_sv.properties
and finally
/Bundle.properties
Your error message tells you that no one of these files probably exists.
Regards,
Martin |
|
| Back to top |
|
 |
kimfri
Joined: 22 Sep 2011 Posts: 2
|
Posted: Fri Sep 23, 2011 8:56 pm Post subject: |
|
|
@Martin, I'm glad of your quick answer.
| Quote: | you have to have Bundle.properties in your default package (means i.e.
<your_app_dir_>/src/java/Bundle.properties). |
Well I've got my Bundle.properties under : <my_app_dir>/src/main/java/Bundle.properties, I guess that's were it should be, right?
The file is autogenerated so I guess NetBeans puts it in the right place.
Atleast that's what I see in the project-view in NetBeans.
However in the .war-file that is generated, the bundle file is not pressent, should it not be there? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|