Programmatically creating a page with portlets in it

Hello!
I need a little help figuring out how to programmatically create a page and add a couple portlets to it. I have figured out how to create the PageDefinition and that code works great. How can I add 2 portlets (the portlet definitions already exist in the Portal Library) to that page definition?
I just need a couple hints & maybe some pseudo-code to get me going in the right direction.
I'm stuck with using BEA 8.1 SP2 at the moment.
Thanks for any help,
John

If you want to add the portlets to the page in the library and effect all instances of the page use the PageDefinitionManager.addPlaceable(...) EJB.
javadoc
http://edocs.beasys.com/wlp/docs81/javadoc/com/bea/netuix/application/manager/IPageDefinitionManager.html#addPlaceable(com.bea.netuix.application.manager.CustomizationContext,%20com.bea.netuix.application.identifier.PageDefinitionId,%20com.bea.netuix.application.identifier.PlaceableDefinitionId,%20com.bea.netuix.application.identifier.PlaceholderDefinitionId,%20int)
If you want to just effect that page on a particulr desktop use the PortalCustomizationManager.addPlaceable(...) EJB
http://edocs.beasys.com/wlp/docs81/javadoc/com/bea/netuix/application/manager/IPageInstanceManager.html#addPlaceable(com.bea.netuix.application.manager.CustomizationContext,%20com.bea.netuix.application.identifier.DesktopDefinitionId,%20com.bea.netuix.application.identifier.PageInstanceId,%20com.bea.netuix.application.identifier.PlaceableDefinitionId,%20com.bea.netuix.application.identifier.PlaceholderDefinitionId,%20int)
Chris Jolley
Portal Architect

Similar Messages

  • Is it possible to create a page with a signature, that can be then applied to other pages?

    I want to know if I can create a page, with a place for an ink signature, and that signature can be then copied onto other pages within the pdf where the same person's signature is needed.

    I would like to invite you to take a look at my Nugget on Action Engines.
    Since you have a data value that must be available for live updates in more than one place in the code, an Action Engine will provide a reliable method to share that value. You will update the Action Engine any time the control changes. All other function that require that information can read the the value form the Action Engine.
    That method has been in use since LV version 2 and provided the AE is implemented correctly (see Nugget) it gives good performance and helps keep code modular.
    I hope that help,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to create a page with check boxes

    Hello friends
    I want to create a page with 5 statements and 5 checkboxes. The next page will be displayed only if all the 5 checkboxes are checked.
    Can you please let me know how to create the page (could not find any template for this!) and how to control the display of the next page through checkboxes.
    I am on version 4.7 of R/3 and EP 6.0.
    This is urgent, prompt reply would be greatly appreciated.
    thanks
    pomila

    Hello Michael
    Thanks for your prompt reply, your answer was indeed helpful.
    Just another quick question, does EP 6.0 have any template/iview which we can use or it has to be done through coding only?
    thx
    pomila

  • How do i create linked pages with multiple video clips on each of them?

    I took a bunch of small videos with my digital camera, and now want to make a dvd that has a main menu with 7 choices, and then each one of those will take you to pages with each clip as a motion button (6 to a page). So if i click on "Dublin" on the main menu, it takes me to Dublin #1 which has clips 1 - 6, i can then click on an arrow to go to a second page with clips 7 - 12, etc. I can return to the main menu and click on "Belfast" which takes me to the first page of 6 clips, then a second page with 6 more, etc.
    The problem I am having is linking two or more Chapter pages together. Thanks for your help.
    Eric

    Welcome to the forums, Eric.
    iDVD has a few limitations, but you can do much of what you want.
    Limitations: Only 6 selections per menu page. And the Forward/Backward selection buttons advance only one menu at a time.
    Basic solution: Use the folder button to create a link to a submenu; move to that submenu and drag your movies onto that menu page. Repeat for more submenus.
    Alternative approach: Use iMovie to join all the Dublin videos, with chapter markers to designate each segment. Import the movie with chapter markers into iDVD and they automatically create the Dublin submenus. And you can watch all the Dublin videos in a row, or use the menus to navigate to the desired video. After you watch the last segment, you'll automatically return to the main menu.
    John

  • How do I create photo page with blow up images on click?

    I need some help trying to create a web page of photo thumbnails with blow-up larger images:
    1) I want to create a contact sheet type of web page of multiple photo thumbnails.
    2) When you click the photo it opens into a small window or "blow-up" version of the thumbnail. (Clicking the thumbnail does NOT take you to a new page with the full size image).
    3) The blow-up photo has a circle and X that will close the blow-up window.
    I've already figured out how create pages of thumbnails that will take you to a new page with the full size image. I'm trying to create the effect where you never leave the main page, the thumbnails just blow-up into small windows that can be closed again.
    Apple uses this effect a lot with photos and movie clips on their page. An example of what I am trying to do can be found on the iLife/iPhoto/MobileMeGallery info page at Apple.
    If you look to the right just under the main large banner images, there is a grey box titled "iPhoto Showcase." If you click one of the thumbnails there, the picture blows out to a larger size of the image, but doesn't take you to another page. The blow-up image has a little circle and X at the top left to close the window. Main page is still visible behind the blow-up window.
    I'm using a fairly new MacBook with OS 10.5, iPhoto and iWeb '08. I also have Aperture 2.0. I don't have a .Mac or MobileMe account yet. I'm a recent convert from the Darkside, so right now I use google's Picasa Web Albums and google's website creator for my site. If I can get this to work, I'll make the switch MobileMe once the early .Mac conversion kinks get worked out.
    Thanks,
    TDizzle...

    Cyclosaurus--
    That's the effect that I'm looking for. I've read through the instructions on Cabel's website (thanks for the great links!) But I'm afraid I'm still a bit of a novice with website creation and editing. I liked your iWeb examples, so I have a few follow-up questions about how to integrate this with iWeb.
    1) Do you use iWeb and .Mac/MobileMe to publish your site? I already own a domain and have been using google's online page creator tools to create some very basic pages. For picture pages, I just put up links to my Picasa web albums. But the google user interface and options (no FTP upload) are even more limited than iWeb and .Mac. With 20GB of storage, plus the other features and ability for integration, MobileMe sounds enticing for the price.
    2) At what point do you add the code to the pages in the edit and publish process? What are the exact steps you use to publish? (Create and edit in iWeb, add html code, publish to folder or publish straight to .Mac/MobileMe, etc.)
    3) If you make changes to pages in iWeb, do you have to keep adding the code to the pages and repeat the steps from above question?
    4) What app do you use to edit the html code? No html edit function in iWeb, so I tried opening the "page.html" files in TextEdit but the page just looked like a web page. No code. How do I get the text of the html code to open in TextEdit or another app?
    5) Do the lines of code (2 lines in "head" and 1 line in "body") need to be added to every page that I want to use the effect?
    6) How do you upload the two FancyZoom folders to a .Mac/MobileMe account site? And where exactly do they need to be placed?
    Thanks,
    TDizzle...

  • How do I create photo page with blow up images?

    I need some help trying to create a web page of photo thumbnails with blow-up larger images:
    1) I want to create a contact sheet type of web page of multiple photo thumbnails.
    2) When you click the photo it opens into a small window or "blow-up" version of the thumbnail. (Clicking the thumbnail does NOT take you to a new page with the full size image).
    3) The blow-up photo has a circle and X that will close the blow-up window.
    I've already figured out how create pages of thumbnails that will take you to a new page with the full size image. I'm trying to create the effect where you never leave the main page, the thumbnails just blow-up into small windows that can be closed again.
    Apple uses this effect a lot with photos and movie clips on their page. An example of what I am trying to do can be found on the iLife/iPhoto/MobileMe Gallery info page.
    http://www.apple.com/ilife/iphoto/#mobilemegallery
    If you look to the right just under the main large banner images, there is a grey box titled "iPhoto Showcase." If you click one of the thumbnails there, the picture blows out to a larger size of the image, but doesn't take you to another page. The blow-up image has a little circle and X at the top left to close the window. Main page is still visible behind the blow-up window.
    I think this post mentions what I'm trying to do, but they seem to be having problems getting it to work. I need help creating this effect from scratch.
    http://discussions.apple.com/thread.jspa?threadID=1609046
    I'm using a fairly new MacBook with OS 10.5, iPhoto and iWeb '08. I also have Aperture 2.0. I don't have a .Mac or MobileMe account yet. I'm a recent convert from the Darkside, so right now I use google's Picasa Web Albums and google's website creator for my site. If I can get this to work, I'll make the switch MobileMe once the early .Mac conversion kinks get worked out.
    Thanks,
    TDizzle...

    Cyclosaurus--
    That's the effect that I'm looking for. I've read through the instructions on Cabel's website (thanks for the great links!) But I'm afraid I'm still a bit of a novice with website creation and editing. I liked your iWeb examples, so I have a few follow-up questions about how to integrate this with iWeb.
    1) Do you use iWeb and .Mac/MobileMe to publish your site? I already own a domain and have been using google's online page creator tools to create some very basic pages. For picture pages, I just put up links to my Picasa web albums. But the google user interface and options (no FTP upload) are even more limited than iWeb and .Mac. With 20GB of storage, plus the other features and ability for integration, MobileMe sounds enticing for the price.
    2) At what point do you add the code to the pages in the edit and publish process? What are the exact steps you use to publish? (Create and edit in iWeb, add html code, publish to folder or publish straight to .Mac/MobileMe, etc.)
    3) If you make changes to pages in iWeb, do you have to keep adding the code to the pages and repeat the steps from above question?
    4) What app do you use to edit the html code? No html edit function in iWeb, so I tried opening the "page.html" files in TextEdit but the page just looked like a web page. No code. How do I get the text of the html code to open in TextEdit or another app?
    5) Do the lines of code (2 lines in "head" and 1 line in "body") need to be added to every page that I want to use the effect?
    6) How do you upload the two FancyZoom folders to a .Mac/MobileMe account site? And where exactly do they need to be placed?
    Thanks,
    TDizzle...

  • Newbie:how to create a page with 4 textfields and send data to MySql DB

    Dear all,
    i have created a page called page1 with 1 submit button named 'submitButton' and 4 textfields named:
    'date'
    'item'
    'contact'
    'phone'
    I have created a MySql DB table with the schema named 'association' and table named todolist3. Fields created in the table are :
    'Date' - >INTEGER->Primary
    'Item' ->VARCHAR(100)
    'Contact' ->VARCHAR(45)
    'Phone_contact' ->INTEGER
    what i want to do is to send the data from the 4 textfields to the database when i click the submit button. Below is the code i out in submit button. please kindly help as i have tested different ways but none of them works. thank you!!!
    public String submitButton_action() {
    try {
    if ( todolist3DataProvider.canAppendRow() )
    String item1=(String)item.getText();
    String contact1=(String)contact.getText();
    Integer phone1=(Integer)phone.getText();
    Integer date1=(Integer)date.getText();
    RowKey rowKey = todolist3DataProvider.appendRow();
    todolist3DataProvider.setCursorRow(rowKey);
    todolist3DataProvider.setValue("todolist3.Date", date1);
    todolist3DataProvider.setValue("todolist3.Item",item1);
    todolist3DataProvider.setValue("todolist3.Contact",contact1);
    todolist3DataProvider.setValue("todolist3.Phone_contact",phone1);
    } else {
    error("submitButton_action() -- cannot append todolist3 record");
    } catch (Exception e) {
    error("Page1::submitButton_action-- something's wrong trying to append todolist3 record");
    return null;
    }

    Hi,
    I think that you have forgotten to commit changes. Modify your code to look like this:
    RowKey rowKey = todolist3DataProvider.appendRow();
    todolist3DataProvider.setCursorRow(rowKey);
    todolist3DataProvider.setValue("todolist3.Date", date1);
    todolist3DataProvider.setValue("todolist3.Item",item1);
    todolist3DataProvider.setValue("todolist3.Contact",contact1);
    todolist3DataProvider.setValue("todolist3.Phone_contact",phone1);
    // commit your changes !!!
    todolist3DataProvider.commitChanges();
    } else {
    // ....best regards
    Grzegorz

  • Automatically create a page with names of docs in folder

    I need to create a web page for our intranet that just
    dipslays all of the names of the docs in an "Archived" folder and
    provides a link to the docs in the folder. It's for archived
    reports that are needed on the intranet, but I want for my boss to
    be able to just save the previous day's report in a particular
    folder and have this "archived" web page automatically update every
    time a document is placed in the Archived folder. Is that possible?
    Will Dreamweaver produce a page like this automatically?

    Will
    > Dreamweaver produce a page like this automatically?
    >
    Nope.
    Is this intranet on a local web server?
    option one- set the controls for the web server to enable
    "directory
    browsing" That will display a simple ugly page with all the
    files in the
    folder linked.
    option two- what type of server side scripting can be used on
    this web
    server? Reply with that info and people may give links to
    possibles, or you
    could go to a place like
    http://hotscripts.com and search
    for a directory
    display script.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Cannot create dynamic page with cursor based on linked table

    I get the following error when i try to create a dynamic portal page that uses a pl/sql cursor:
    ORA-06550: line 1, column 24:
    PL/SQL: ORA-00980: synonym translation is no longer valid
    ORA-06550: line 1, column 24:
    PL/SQL: SQL Statement ignored (WWV-11230)
    Failed to parse as REPORTS - DECLARE CURSOR C1 IS SELECT * FROM
    [email protected]; BEGIN FOR R1 IN C1 LOOP HTP.P(','||'<BR>');
    END LOOP; END; (WWV-08300)
    Dynamic page:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>
    declare
    cursor c1 is
    select * from [email protected];
    begin
    for r1 in c1 loop
    htp.p('hello<br>');
    end loop;
    end;
    </ORACLE>
    </BODY>
    </HTML>
    When i use the sql query from the cursor in the page below, i get no errors:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>select * from [email protected]</ORACLE>
    </BODY>
    </HTML>
    I tried a dynamic page with a cursor on session_roles and had no problems. I assume that there is an issue with the database link or the privileges. The queries seem to get executed under portal_public;
    Oracle Portal Version: 9.0.4.0.99

    I get the following error when i try to create a dynamic portal page that uses a pl/sql cursor:
    ORA-06550: line 1, column 24:
    PL/SQL: ORA-00980: synonym translation is no longer valid
    ORA-06550: line 1, column 24:
    PL/SQL: SQL Statement ignored (WWV-11230)
    Failed to parse as REPORTS - DECLARE CURSOR C1 IS SELECT * FROM
    [email protected]; BEGIN FOR R1 IN C1 LOOP HTP.P(','||'<BR>');
    END LOOP; END; (WWV-08300)
    Dynamic page:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>
    declare
    cursor c1 is
    select * from [email protected];
    begin
    for r1 in c1 loop
    htp.p('hello<br>');
    end loop;
    end;
    </ORACLE>
    </BODY>
    </HTML>
    When i use the sql query from the cursor in the page below, i get no errors:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>select * from [email protected]</ORACLE>
    </BODY>
    </HTML>
    I tried a dynamic page with a cursor on session_roles and had no problems. I assume that there is an issue with the database link or the privileges. The queries seem to get executed under portal_public;
    Oracle Portal Version: 9.0.4.0.99

  • Theme 20: Cannot create a page with 2 regions in one and 2 reg. in next row

    Hello,
    I have a page (template Two Level Tabs) with 4 regions in an application with theme 20.
    Region 1
    ======
    Display Point: Page Template Body (2. items below region content)
    Column: 1
    Region 2
    ======
    Display Point: Page Template Body (2. items below region content)
    Column: 2
    Region 3
    ======
    Display Point: Page Template Body (3. items above region content)
    Column: 1
    Region 4
    ======
    Display Point: Page Template Body (3. items above region content)
    Column: 2
    So I should get a layout like this:
    Region1 | Region2
    Region3 | Region4
    But I get a layout like this:
    Region1 | Region2 | Region3 | Region4
    Is this a but in Theme 20? With an other theme it works fine.
    Regards,
    Mark

    Its all empty html-regions. I create this page because I have the problem with a complex page, but so its easier to find the failure.
    The sequences are 10 (region test1), 20 (region test2), 30 (region new row 1), 40 (region new row 2), look here:
    Regions
    Display Point: Region Position 02
    10           test1     HTML     
    20           test2     HTML (Column 2)     
    Display Point: Region Position 04
    30           new row 1     HTML     
    40           new row 2     HTML (Column 2)

  • Creating new page with new parent tab

    Does this happen to anyone else? When I try to create a new page that will have a new parent tab and standard tab in a 2-level tab setup, it never seems to work right. I end up having to dele the new parent tab and standard tab I created while creating the new page. Then once the page is created, I go into Shared Components -> Tabs, and create a new Parent Tab and assign it to this new page. Seems like a crazy way to have to do it.
    I know this sounds crazy and it is hard to explain the issue, but anyone who has had this problem with creating a new page with new 2-level tabs will understand what I am talking about.
    Can anyone point me to an explanation on how this should be done? I know I must be missing something.
    Thanks,
    John

    I've recently had to muck around with the 2 level tabs aswell. There are some things making this rather difficult indeed.
    What i'd do when creating a new page you want to have under a new tab, but also with a new parent tab, is to create it with only a new STANDARD tab. Don't create a new parent tabset. All parent tabs are in the same tabset, and if you create a new tabset you'll effectively see only this new parent tab + tab on the page you created.
    So unless you want the page to be on an absolutely new set of tabs, you'll probably just want the page to be on a new top-level tab with under that a new standard tab. Like so:
    <NEW PARENT> | parent 1 | parent 3 | parent 4
    <NEW TAB> |
    To achiece this, you'll need a new standard tab set. You can create this when creating the page. The standard tab set is the set used for you lower level tabs, so obviously we do need a new one.
    As for the parent set which you can choose upon page creation, choose the already existing parent tab set. This set contains all your already existing parent tabs, and you wish to add one for display.
    When you finish creating the page and run it, you'll see that the standard (lower level) tab is there, and is set to active, but your parent tab is not there.
    Go to Shared Components > Tabs. Select the "Manage Tabs" tab there. You can notice your new set there, but notice the striped outline of it. This tab has no parent tab for it! And this is the problem with tab creation in 2-level tabs: you can make a new STANDARD tab and tabset, and define a parent tab set OR create a NEW tab set with tab. Both options fail us: what we want is a NEW parent tab in an existing parent tab set!
    So to fix our problem, from the manage tabs tab click on "Manage Parent Tabs", found on the right hand side of the screen in the region "Parent Tab Tasks".
    This'll bring you to a magical new tab within the tab components. It's a mystery to me why it has to be hidden like this, and makes it a real pain to use. On this page you can manage your parent tabs (the only place to do so actually...). Here you'll see there is no parent tab for your page (again), but here you can create a new parent tab from the right hand menu "Parent Tab Tasks" > "Create New Parent Tab". Enter a label, and choose your existing parent tab set as parent tab set. Don't create a new set. As for target, refer to your new page again.
    However, we are not done yet. You are returned to the "Parent Tab Management" page. You new parent tab will be shown there, but when you run your page, the parent tab will not be set active yet.
    To fix that, go back to the "Parent Tab Management". Select your parent tab so you go to it's details. Firstly, give it a new sequence number, otherwise it'll be shared with one (the parent tabs are created with sequence nr 10, so most probably on a shared position with your first parent tab).
    Then turn your eyes on the "Current on Standard TabSet" list item. It'll have an option selected, but take a good look: it'll be the same name as your parent tab. From the options, select your new Standard tab set (the lower level set) which holds your new page. Then apply your changes and run your page: both your parent and standard tab will be there and highlighted. Yay!

  • Creating album page with both video and pics

    recently switched from pc to mac. was using blogger and coppermine for online photo album but want to give this iweb thing a try... is there a way in iweb to create a page that has both video and pics? i tried uploading my album but it only transferred the pics.

    thanks for the feedback... let's say i decide to
    stick with the photo template and make thumbnail pics
    of my video to add in - can i put in a hyperlink
    (either using the title or the pic itself) to the
    video? basically, my concern is to keep all related
    material of an album together in one spot.
    Yes, you can do this. Just throw in the thumbnail pics of your video with the rest of your photos. Then put your real videos on separate movie pages. Then back to your photo page...you need to make the hyperlinks. So what you need to do is to create little rectangle shapes that fit over the video thumbnails, attach hyperlinks to the respective movie pages, then using the Inspector Graphics tab make the rectangle shapes 1% opacity so that the underlying thumbnail shows through. This is the overlay trick to get the hyperlink working.
    Good luck!

  • Can I create a page with a questionnaire in it?

    Hi everyone! I'm new to iWeb and this forum and have this question:
    Is there a way to create an iWeb page with a user-answerable questionnaire form in it-boxes next to the questions that the visitor to my site could type answers into. I would like the form to have a "submit" button at the bottom which would send the form to my email address.
    Is this possible with iWeb?
    Thanks

    Hi redwood516,
    I have released a web just a few days a go working with iWeb, but, so I'm talking with just a bit of experience, forgive me for this, anyway I will try to explain that anyway with some examples linked in this forum.
    There are some things like the questionnaire, google ads, and so on that will need the html contained in your iWeb template that need some modification, and, that's right, you will need to pay for some extra tool, and in any case you will have to work a little bit more than a couple of clicks.
    As I told you I'm not an expert, so, I'm giving you the answer from another thread. I hope it helps you
    Have a nice day
    http://discussions.apple.com/thread.jspa?messageID=4235405&#4235405

  • Create home page with several tabs upon opening Safari

    I would like to create a home page with several tabs upon opening Safari is this possible?

    Yes, it's possible.
    First create a folder of bookmarks containing the pages you want to have appear as tabs when you start Safari.
    Once you've got that bookmarks folder set up, go into your General Safari preferences. At "New windows open with:" select "Choose tabs folder ..." as per the following screenshot:
    .... and select the bookmarks folder you set up before.
    Quit and restart Safari. Do the contents of the bookmarks folder open in tabs in a new window?
    (To change what tabs you have opening in a new window, just change the content of the bookmarks folder you've selected in your preferences.)

  • How to create a page with LOV and a Go Button that calls a sproc

    I'm new to Apex but not Oracle. I've done some VB, C and other programming.
    I have read the 2 Day + and worked through most of the advanced tutorials as well as the Apex 3.0 ermployee task OBE. I'm looks for an OBE or assistance in doing the following:
    I need to create a page that has a dynamic LOV that pulls CUSTOMER NAME as d, and ID as r (this I can do).
    I need a button on the page "Go". Here's the use case.
    User selects a customer from the LOV
    User presses Go
    Go invokes myschema.go_sproc and passes in LOV selected Cust ID
    myschema.go_sproc does some work and passes back a Status
    Status is displayed to the user
    Any pointers are appreciated.

    Great.
    Two last questions:
    #1 Is there a Apex Reference, like the SQL Reference, that lists all the various settings and options and their meanings, for instance on the create region page there are many different region types. Is this information centralized in one place? I don't see (or I am missing it) in the list of Apex 3.2 books.
    #2 For my use case would you use a HTML region or some other type of region?
    Thanks again.
    George

Maybe you are looking for

  • Vendor classification

    Dear all, In our company vendor classificaiton is maintained for all vendor, for this classsification we have 4 characteristics, out of 1 is material groups. Say for example Material 0001 is assigned to vendor ABC in the classification, like this 30

  • Downloading and installing flash

    i'm trying to download flash and getting the following error message after i try to run the doewnload "action list not found"....any help?

  • How to install subversion into NWDS flugins

    Hi. I'm a newbie for NW Develop studio. I like to use subversion for version control, but i cannot install it on NWDS. Is there anyone to help me to do it? Thanks in advance.

  • Intercompany STO Delivery Creation

    Hi  Experts Scenario: Intercompany STO Delivery creation. When delivery creation though Tcode - VL10B, in the shipping side if no enough stock, is it possible stop creating delivery orders and  to throw error. I dont want to use the P.O side ATP chec

  • I made a playlist in iTunes, but it will not sync with my iPhone, why?

    I made a playlist in iTunes, but it will not sync with my iPhone when I connect it to iTunes and select sync, why?  On the music tab, I have selected, import all songs.