Erreurs

View: New views
14 Messages — Rating Filter:   Alert me  

Erreurs

by hervehenri :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bonjour à tous j,ai fait un commit avec mes erreurs donc l,application ne marche pas malgrés les modifications apportées à home page.java et .html idem pour hompe page menupanel.java et .html parceque je cherche la solution à mon probléme si quelqu'un parmis vous à une idée s,il vous plaît me dépanner.
Merci d,avance et bonne journée

Re: Erreurs

by dzenanr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>...je cherche la solution à mon probléme

Explique bien ton probléme!
Dženan http://www.modelibra.org/

Re: Erreurs

by dzenanr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Donne le message d'erreur!
Dženan http://www.modelibra.org/

Re: Erreurs

by hervehenri :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Unexpected RuntimeException
WicketMessage: Unable to find component with id 'countryLanguageChoice' in [MarkupContainer [Component id = homePageMenuPanel, page = humanresource.wicket.home.HomePage, path = 14:homePageMenuPanel.HomePageMenuPanel, isVisible = true, isVersioned = false]]. This means that you declared wicket:id=countryLanguageChoice in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match.[markup = file:/C:/workspace/HumanResourcesCompetenceMgmt/WEB-INF/classes/humanresource/wicket/home/HomePageMenuPanel.html<html><wicket:panel> <div class="menu">    <ul>     <li>     Home    </li>     <li>     HumanResource    </li>     <li>     Model    </li>     <li>     News    </li>     <li>         <wicket:message key="home.menu.signUp"/>         </li> <li>         <wicket:message key="home.menu.signOut"/>         </li>     <!-- <li>     Herve    </li>  -->                                 To be replaced dynamically by the language choice.      </ul></div>  </wicket:panel></html>, index = 29, current = '' (line 36, column 4)]Root cause:org.apache.wicket.markup.MarkupException: Unable to find component with id 'countryLanguageChoice' in [MarkupContainer [Component id = homePageMenuPanel, page = humanresource.wicket.home.HomePage, path = 14:homePageMenuPanel.HomePageMenuPanel, isVisible = true, isVersioned = false]]. This means that you declared wicket:id=countryLanguageChoice in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match.[markup = file:/C:/workspace/HumanResourcesCompetenceMgmt/WEB-INF/classes/humanresource/wicket/home/HomePageMenuPanel.html<html><wicket:panel> <div class="menu">    <ul>     <li>     Home    </li>     <li>     HumanResource    </li>     <li>     Model    </li>     <li>     News    </li>     <li>         <wicket:message key="home.menu.signUp"/>         </li> <li>         <wicket:message key="home.menu.signOut"/>         </li>     <!-- <li>     Herve    </li>  -->                                 To be replaced dynamically by the language choice.      </ul></div>  </wicket:panel></html>, index = 29, current = '' (line 36, column 4)]     at org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:472)     at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1228)     at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1348)     at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:624)     at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:112)     at org.apache.wicket.Component.renderComponent(Component.java:2151)     at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1295)     at org.apache.wicket.Component.render(Component.java:1998)     at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1181)     at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1311)     at org.apache.wicket.Page.onRender(Page.java:1367)     at org.apache.wicket.Component.render(Component.java:1998)     at org.apache.wicket.Page.renderPage(Page.java:863)     at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:225)     at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103)     at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1097)     at org.apache.wicket.RequestCycle.step(RequestCycle.java:1166)     at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)     at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)     at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:319)     at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:169)     at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)     at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286)     at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)     at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)     at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)     at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)     at org.mortbay.http.HttpServer.service(HttpServer.java:879)     at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)     at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)     at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)     at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)     at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)     at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
 

Markup
The problem is in "file:/C:/workspace/HumanResourcesCompetenceMgmt/WEB-INF/classes/humanresource/wicket/home/HomePageMenuPanel.html":

<html><wicket:panel>    <div class="menu">    <ul>         <li>            Home        </li>        <li>            HumanResource        </li>         <li>            Model        </li>        <li>            News        </li>        <li>                            <wicket:message key="home.menu.signUp"/>                    </li>        <li>                            <wicket:message key="home.menu.signOut"/>                    </li>        <!-- <li>            Herve        </li>  -->                                      To be replaced dynamically by the language choice.             </ul></div>  </wicket:panel></html>
 

Re: Erreurs

by hervehenri :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ma question est de savoir si mon code est bel et bien le bon ou bien je ne suis pas sur la voie

//  Languages Countries
                        ViewModel countryLanguagesViewModel = new ViewModel(reference);
                        CountryLanguages countryLanguages = reference.getCountryLanguages();
                        countryLanguagesViewModel.setEntities(countryLanguages);

                        View countryLanguagesView = new View(humanResourceApp);
                        countryLanguagesView.setWicketId("countryLanguageChoiceSection");
                        countryLanguagesView.setContextView(homePageView);

                        EntityDisplayTablePanel countryTable = new EntityDisplayTablePanel(
                                        countryLanguagesViewModel, countryLanguagesView);
                        add(countryTable);

Re: Erreurs

by dzenanr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Unable to find component with id 'countryLanguageChoice'

countryLanguagesView.setWicketId("countryLanguageChoiceSection");

HTML: countryLanguageChoice

countryLanguageChoice != countryLanguageChoiceSection
Dženan http://www.modelibra.org/

Re: Erreurs

by dzenanr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ERROR org.modelibra.wicket.concept.CountryLanguageChoicePanel Error in CountryLanguageChoicePanel: There is no get language method for the entity
Dženan http://www.modelibra.org/

Re: Erreurs

by dzenanr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

countrylanguage.xml:

<?xml version="1.0" encoding="UTF-8"?>

<countryLanguages/>
Dženan http://www.modelibra.org/

Re: Erreurs

by dzenanr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

HomePageMenuPanel

I18n:

countryLanguages.getCountryLanguage(languageCode);

-->

defaultLanguage = countryLanguages.getCountryLanguage(languageCode);
Dženan http://www.modelibra.org/

Re: Erreurs

by dzenanr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

J'ai supprimé I18n de la page principale.
Dženan http://www.modelibra.org/

Re: Erreurs

by dzenanr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

J'ai fait un commit.
Dženan http://www.modelibra.org/

Re: Erreurs

by hervehenri :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Merci Dzenan

Re: Erreurs

by hervehenri :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

je vois

Re: Erreurs

by hervehenri :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Merci pour ta reponse je ne voyais pas cette erruer